package cn.com.guage.dynamic.datasource.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import cn.com.guage.dynamic.datasource.config.Datasources;

/**
 * 数据源切换注解
 * 自定义注解实现数据源绑定
* @author yangdechao
 * @version 1.0
 * @date 2020/07/13 15:19
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD,ElementType.TYPE})
public @interface ChoiceDataSource {
    String value() default Datasources.DB1;
}